package com.weixing.mall.core.support;

import com.weixing.mall.base.wrapper.Result;
import com.weixing.mall.base.wrapper.ResultUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: kfc
 * @Description: <br/>
 * Date:Create in 2019/8/14 9:52
 * @Modified By:
 */
@RestController
@RequestMapping("error")
public class ErrorController extends  BaseController {

    @GetMapping("")
    public Result error(){
        return ResultUtil.notFound();
    }

    @GetMapping("/404")
    public Result error_404(){
        return ResultUtil.notFound();
    }

    @GetMapping("/500")
    public Result error_500(){
            return ResultUtil.exception();
    }
}
